package com.ddh.bankmanager.service;

import com.ddh.bankmanager.common.BaseEntity;
import com.ddh.bankmanager.domain.customerinfo.CustomerInfo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ddh.bankmanager.domain.customerinfo.dto.CustomerInfoLoginDTO;
import com.ddh.bankmanager.domain.customerinfo.dto.CustomerInfoQueryDTO;
import com.ddh.bankmanager.domain.customerinfo.dto.CustomerInfoRegisterDTO;
import com.ddh.bankmanager.domain.customerinfo.vo.CustomerInfoVO;

/**
* @author 11
* @description 针对表【customer_info】的数据库操作Service
* @createDate 2025-02-25 10:51:26
*/
public interface CustomerInfoService extends IService<CustomerInfo> {

    /**
     * 查询用户是否存在
     * @param username
     * @return
     */
    CustomerInfo getCustomerInfoByUsername(String username);

    /**
     * 登录
     * @param customerInfoDTO
     * @return
     */
    CustomerInfoVO login(CustomerInfoLoginDTO customerInfoDTO);

    /**
     * 注册接口
     * @param customerInfoRegisterDTO
     * @return
     */
    Boolean register(CustomerInfoRegisterDTO customerInfoRegisterDTO);

    /**
     * 获取客户信息列表
     * @param customerInfoQueryDTO
     * @return
     */
    BaseEntity<CustomerInfo> getCustomerInfoList(CustomerInfoQueryDTO customerInfoQueryDTO);

    /**
     * 删除用户
     * @param customerId
     * @return
     */
    Boolean deleteCustomerInfo(Integer customerId);

    /**
     * 根据id查询用户信息
     * @param customerId
     * @return
     */
    CustomerInfo getCustomerInfoById(Integer customerId);

    /**
     * 获取当前客户信息
     * @return
     */
    CustomerInfo current();
}
